local SQL db connected + function add