SQL my own db solution