restructured. separated client from serveer and created db