Fixed database declaration