started server
moved files and show latest entry
separated database logic into its own namespace