def exists_username(cursor, username):
	"""Check whether a username exists in the database."""
	
	cursor.execute("select username from profile where username = ?;", (username,))
	
	return cursor.fetchone() is not None