Done GitHub login, init db, fix some bugs.