add test code
add files for server and database
move add_database to server