Fix #77 - Solved problem with empty database.