Database and frontend working