database sock wrong