implement server and database files