fixed check for :strict option on connect_to_db