Add and check connection
Finish add record to db functionality