fix db-connection error
fix selection names