Assign database connection property correctly