setup database if not already setup