Finally a seemingly working database setup