Got the database working and portable
