Hopefully got databases working properly