Fixed Database Nil Issue
Merge remote-tracking branch 'upstream/master'