add database and create connection