started redisign wrok with database