sorted issues with the database classes not linking to one another properly. Population script still needs doing though.