erd and database sql