Add autodetecttion of DB kind