class AddressStore {

    public boolean add(int userId, Address address) {
        boolean result = false;
        if (address != null) {
            try (Connection connect = CON.getConnect();
                 PreparedStatement st = connect.prepareStatement(QUERIES.getProperty("addAddress"))) {
                st.setInt(1, userId);
                st.setString(2, address.getAddress());
                st.execute();
                result = true;
            } catch (SQLException e) {
                LOG.error(e.getMessage(), e);
            }
        }
        return result;
    }

}