Adding main
Server library. database connection not tested