change database and add time and place choices

change sqlite3 to postgresql, and add time and place choices, it can run now.

common 里放的不是应该是通用的一些模块吗。
Room 在项目里会通用么？