First sql commit. Lots of bugs, don't judge.