Fixed empty state. Converted to database.