Index opens database connection and added empty login, register, and profile pages