smart database