Added a database connection

Statuses are now loaded from database tables