Alternative approach of working with SQL databases