change properties depends on the database tables