Added oauth provider application factory
Create db on start