Rewrite daemons controller to supply real data
Fix login handler to extract the database information

and update the connection with it