read from database and server read post data