add db creation
fix install
fix branch detection