Added option to use one database with multiple apps