Updated error checking
Added app & database create methods