wrote basic SQL methods templates