Database connection to properties