creating a base of a server and it prepared for database