Move databases into own modules