Database

Added the database setup to the pre-install script.