copy the database over to var if it's not already there