implemented basic local db creation for payments