start to write db model